import request from '@/utils/request'
// 查询获取栋号、楼层、宿舍号 信息,用于宿舍考核信息的显示
export function getManualHygieneList(query) {
  return request({
    url: '/smartdor/manualHygiene/manualHygieneList',
    method: 'get',
    params: query
  })
}

export function getHygieneByDormitoryIdAdndCheckDate(query) {
  return request({
    url: '/smartdor/manualHygiene/getHygieneByDormitoryIdAdndCheckDate',
    method: 'get',
	  params: query
  })
}

export function addHygiene(data) {
   //that.$refs.uploadxls.submit() // 提交时触发了before-upload函数
   
  return request({
    url: '/smartdor/manualHygiene/create',
    method: 'post',
    data: data
  })
}

// 修改卫生考核信息
export function updateHygiene(id,data) {
  return request({
    url: '/smartdor/manualHygiene/update/' + id,
    method: 'put',
    data: data
  })
}

/*
export function getStuByDormitoryNo(query) {
  return request({
    url: '/smartdor/manualsdAttence/getStuByDormitoryNo',
    method: 'get',
	params: query
  })
}

// 新增人工考勤信息
export function addManualAttence(data) {

  return request({
    url: '/smartdor/manualsdAttence/create',
    method: 'post',
    data: data
  })
}

*/